Chooses the point of the actor's picture that actor_place puts on the room, and that actor_scale and actor_angle swell and turn the picture about. It starts at the picture's top-left corner, (0, 0).
Game Boy: not available
Game Boy Color: not available
Sega Genesis: not built yet
On other consoles this differs: see Side by side and How the consoles differ.
actor_anchor(u, v)| Name | Type |
|---|---|
u | real |
v | real |
Nothing.
Chooses the point of the Background Actor's picture that actor_place puts on the room, and that actor_scale and actor_angle grow and turn the picture about. It starts at the picture's top-left corner, (0, 0). It does nothing in a room that has no zoomable background.
u and v are picture pixels counted from the picture's top-left corner, not room numbers. The Paint tab shows them as you move over the picture. Pick the spot the picture should turn about, the way a door turns about its hinge. Changing the anchor moves the picture unless you also change where actor_place puts it.
// Create event of the boss: her picture turns about the middle of the roof edge, at picture point (256, 400).
actor_anchor(256, 400);
actor_place(240, 97);Picture point (256, 400) now stands at room point (240, 97). Scaling and turning the actor swells and swings the picture about that point.
A no-op in a room that has no zoomable background (set the room's Zoomable background to an actor picture). u and v are PICTURE pixels counted from the picture's top-left corner (not room numbers): the Paint tab shows them as you move over the picture. Pick the spot the picture should turn about, the way a door turns about its hinge. Changing the anchor moves the picture unless you also change where actor_place puts it.